package com.jaryle.quartz.bean;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.stereotype.Component;

/**
 * 描述:
 * 定时任务
 *
 * @author jaryle
 * @version V1.0
 * @create 2018-11-28
 */
@Component
@Configuration
@EnableScheduling
public class AbstractTask implements Job  {

    private Logger logger = LoggerFactory.getLogger(AbstractTask.class);

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        System.err.println("这是第一个任务 is running…………………………………… ");
    }

}
